<?
require_once("admin/dbconnect.php");
require_once("admin/classes/customer.php");
require_once("admin/admin_functions.php");

if(isset($_SESSION['ep_customer_id']))
{
	header("location:my_account.php");
}

if($_POST['Submit_x'] != ""){
	$custObj=new Customer("");
	$mesg = $custObj->sendPassword($_POST['username']);
}

?>
<?php require_once('include/header.php'); ?>


      <div id="middle_container_for_innerpage">
      <div id="innerpage_top_image"><img src="images/images/innerpage_top_corner_820x5.jpg"  height="5" /></div> 
      <div id="middle_inner_container">
      <?php require_once('include/left_menu.php'); ?>
        
        <div id="inner_page_middle_data">
        	<div id="page_heading">Forgot Password</div>
            <div id="forgot_pass_para">
            	<p class="bottom_Margin">If you've forgotten the password to your account, please enter the user name that you use to login to eParinay.com, select your hint question, provide your answer and click the Submit button.</p>
                <p class="bottom_Margin">We will then confirm your identity and e-mail you the new password on your e-mail address provided at the time of registration.
                <!-- Display this message if successful -->
                	<? if($mesg){ ?>
                    	<br><br>
                <div style="color:red;font-size:15px"><?=$mesg?></div>
                    <? } ?>
				</p>
            </div>
            <!-- start table forgot password -->
            <div id="forgot_pass_para">
            	<div id="forgot_pass_form">
            		<div id="forgot_form_row"><p class="bgColor">Forgot Password</p></div>
                    <form name="frmLogin" method="POST" action="forgot_password.php">
                    <div id="forgot_form_row"><div id="forgot_pass_text">Your Email</div><div id="forgot_pass_input"><input type="text" name="username" maxlength="50" class="textbox" style="width:250px" ></div></div>
                    
                    <div id="forgot_form_row"><div id="forgot_pass_text">&nbsp;</div><div id="forgot_pass_input"><input type="image" name="Submit" value="Y" src="images/submit.gif" border="0" onClick="return chklogin();" style="border:none;"></div></div>
                    </form>
                </div>
                
            </div>
         </div>
        

       
       
      </div> 
      <div id="corner_container_bottom_for_innerpage"><img src="images/images/innerpage_bottom_corner_820x10.jpg"  height="10" /></div>
    </div> 
      <!-- middle_container ends -->
    
    
        
    
<?php require_once('include/footer.php'); ?>
